package com.mszlu.blog.service;

import com.mszlu.blog.dao.pojo.SysUser;
import com.mszlu.blog.vo.Result;
import com.mszlu.blog.vo.UserVo;

/**
 * @Author: Jiang Yizhi
 * @Date: 2022/3/26 9:48 AM
 */
public interface SysUserService {

    UserVo getUserVoById(Long id);

    SysUser getUserById(Long id);

    SysUser getUser(String account, String password);

    /**
     * 根据token查询用户信息
     * @param token
     * @return
     */
    Result getUserByToken(String token);

    /**
     * 根据账户查找用户
     * @param account
     * @return
     */
    SysUser getUserByAccount(String account);

    /**
     * 保存用户
     * @param sysUser
     */
    void save(SysUser sysUser);

}
